package com.taobao.api.request;

import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.OmniorderStoreWarehouseResponse;

/**
 * TOP API: taobao.omniorder.store.warehouse request
 * 
 * @author top auto create
 * @since 1.0, 2018.07.25
 */
public class OmniorderStoreWarehouseRequest extends BaseTaobaoRequest<OmniorderStoreWarehouseResponse> {
	
	

	/** 
	* 操作，1表示增加或者更新，2表示删除，3表示查询
	 */
	private Long operation;

	/** 
	* 门店id
	 */
	private Long storeId;

	/** 
	* 仓联系地址
	 */
	private String warehouseAddress;

	/** 
	* 仓编码
	 */
	private String warehouseCode;

	/** 
	* 仓联系人
	 */
	private String warehouseContact;

	/** 
	* 仓联系电话
	 */
	private String warehouseMobile;

	public void setOperation(Long operation) {
		this.operation = operation;
	}

	public Long getOperation() {
		return this.operation;
	}

	public void setStoreId(Long storeId) {
		this.storeId = storeId;
	}

	public Long getStoreId() {
		return this.storeId;
	}

	public void setWarehouseAddress(String warehouseAddress) {
		this.warehouseAddress = warehouseAddress;
	}

	public String getWarehouseAddress() {
		return this.warehouseAddress;
	}

	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}

	public String getWarehouseCode() {
		return this.warehouseCode;
	}

	public void setWarehouseContact(String warehouseContact) {
		this.warehouseContact = warehouseContact;
	}

	public String getWarehouseContact() {
		return this.warehouseContact;
	}

	public void setWarehouseMobile(String warehouseMobile) {
		this.warehouseMobile = warehouseMobile;
	}

	public String getWarehouseMobile() {
		return this.warehouseMobile;
	}

	public String getApiMethodName() {
		return "taobao.omniorder.store.warehouse";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("operation", this.operation);
		txtParams.put("store_id", this.storeId);
		txtParams.put("warehouse_address", this.warehouseAddress);
		txtParams.put("warehouse_code", this.warehouseCode);
		txtParams.put("warehouse_contact", this.warehouseContact);
		txtParams.put("warehouse_mobile", this.warehouseMobile);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<OmniorderStoreWarehouseResponse> getResponseClass() {
		return OmniorderStoreWarehouseResponse.class;
	}

	public void check() throws ApiRuleException {
		RequestCheckUtils.checkNotEmpty(operation, "operation");
	}
	

}